module.exports = { 
  /**
   * 查询摄像头列表  get
   * 参数： algorithmType location state  ...pagination
   */
  getCameraList: `/api/camera/getCameraList`,
  /**
   * 添加摄像头  post
   * 参数： 
   * {
      "cameraId": "camera002",
      "location": "west",
      "ratio": "720P",
      "pixel": "130W",
      "ip": "127.0.0.2",
      "rtmpUrl": "rtmp:127.0.0.2",
      "coordinate": "30,27,47",
      "algorithmList": [
        {
        "algorithmId": "Al001",
        "type": "1",
        "location": "west",
        "parameter": "min:30,max:60",
        "detectionPeriod": "08:00-16:00",
        "detectionArea": "{data:123}",
        "description": "description"
        }
      ]
    }
   */
  insertCamera: `/api/camera/insert`,
  /**
   * 修改摄像头  put
   */
  updateCamera: `/api/camera/update`,
  /**
   * 删除摄像头  delete
   */
  deleteCamera: `/api/camera/delete`,
  
  /**
   * 获取算法  get
   * 参数： cameraId
   */
  getAlgorithmByCameraId: `/api/camera/getAlgorithmByCameraId`,

  
  
  /**
   * 查询算法列表  get
   * 参数：type location search  cameraId  ...pagination
   */
  getAlgorithmList: `/api/algorithm/getAlgorithmList`,
  /**
   * 修改算法  put
   */
  insertAlgorithm: `/api/algorithm/update`,
  /**
   * 删除算法  delete
   */
  deleteAlgorithm: `/api/algorithm/delete`,

  
  
  /**
   * 查询告警列表  get
   * 参数：cameraId startTime endTime  ...pagination
   */
  getAlarmList: `/api/alarm/getAlarmList`,
  /**
   * 删除算法  delete
   */
  deleteAlarm: `/api/alarm/delete`,

  
  /**
   * 查询 告警类型排行  get
   * 参数： startTime endTime
   */
  getAlarmNumRank: `/api/alarm/getAlarmNumRank`,
  /**
   * 查询 告警设备排行  get
   * 参数： startTime endTime 
   */
  getAlarmCameraRank: `/api/alarm/getAlarmCameraRank`,
  /**
   * 查询 告警曲线  get
   * 参数： startTime endTime 
   */
  getAlarmTimeRank: `/api/alarm/getAlarmTimeRank`,
  /**
   * 查询 当日告警曲线  get
   * 参数： startTime endTime 
   */
  getTodayAlarmTimeRank: `/api/alarm/getTodayAlarmTimeRank`,

}